//
//  ZGSearchCell.m
//  Tour
//
//  Created by dllo on 15/10/31.
//  Copyright (c) 2015年 蓝鸥科技. All rights reserved.
//

#import "ZGSearchCell.h"
#define HEIGHT self.contentView.frame.size.height
#define WIDTH self.contentView.frame.size.width

@implementation ZGSearchCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{

    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self creatView];
    }
    return self;
}

- (void)creatView{
    self.labelUp = [[UILabel alloc] init];
    [self.contentView addSubview:self.labelUp];
    [_labelUp release];
    
    self.labelDown = [[UILabel alloc] init];
    [self.contentView addSubview:self.labelDown];
    [_labelDown release];
}

- (void)layoutSubviews{
    [super layoutSubviews];
    self.labelUp.frame = CGRectMake(10, 10, WIDTH, 50);
    self.labelUp.font = [UIFont systemFontOfSize:18];
    self.labelDown.frame = CGRectMake(10, 70, WIDTH, 30);
//    self.labelDown.textColor = [UIColor groupTableViewBackgroundColor];
    self.labelDown.font = [UIFont systemFontOfSize:14];
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
